import time
def sortirovka(A):
    for i in range(len(A)-1):
        for j in range (len(A)-2,i-1,-1):
            if A[j+1]<A[j]:
                A[j],A[j+1]=A[j+1],A[j]
Fin=open("26.txt")
s=Fin.readlines() 
A=[int(i) for i in s]
print(A)
t1=time.time
sortirovka(A)
t2=time.time
print(s)
o=round(1000*(t2-t1))
print (round((t1-t2)*1000))
print ("m1_sorted",o,"milliseconds")


import time
Fin=open("26.txt")
s=Fin.readlines()
A=[int(i) for i in s]
print(A)
t1=time.time
for i in range(len(A)-1):
    for j in range (len(A)-2,i-1,-1):
        if A[j+1]<A[j]:
            A[j],A[j+1]=A[j+1],A[j]
t2=time.time
print(s)
o=round(1000*(t2-t1))
print (round((t1-t2)*1000))
print ("m2_revers",o,"milliseconds")



import time
Fin=open("26.txt")
s=Fin.readlines()
A=[int(i) for i in s]
print(A)
t1=time.time
for i in range(len(A)-1):
    for j in range (len(A)-2,i-1,-1):
        if A[j+1]<A[j]:
            A[j],A[j+1]=A[j+1],A[j]
t2=time.time
print(s)
print (round((t1-t2)*1000))
o=round(1000*(t2-t1))
print ("m3_shiffle",o,"milliseconds")
